package com.jx.mlxg.entity;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName addresses
 */
@Data
public class Addresses {
    /**
     * 
     */
    @TableId(value = "address_id", type = IdType.AUTO)
    private Integer addressId;

    /**
     * 
     */
    private Long userId;

    /**
     *
     */
    private String name;

    /**
     * 
     */
    private String phoneNumber;

//    /**
//     *
//     */
//    private String address;

    /**
     * 
     */
    private String state;

    /**
     * 
     */
    private String postalCode;

    /**
     * 
     */
    private Integer isDefault;


    private String province;

    private String city;

    private String area;

    private String houseNumber;

    private String latitude;

    private String longitude;

    /**
     * 
     */
    @TableField(value = "created_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    /**
     * 
     */
    @TableField(value = "created_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;
}